#include "SpriteBlackCloud.h"
#include "CGlobal.h"
using namespace cocos2d;
SpriteBlackCloud::SpriteBlackCloud(void)
{
}

SpriteBlackCloud::~SpriteBlackCloud(void)
{
}

SpriteBlackCloud * SpriteBlackCloud::node( const std::string arrayPic[],int nNum,float fIntervalTime,bool bRepeat/*=true*/ )
{
	SpriteBlackCloud *pNode=new SpriteBlackCloud;
	if (pNode)
	{
		pNode->autorelease();
		if (pNode->init(arrayPic,nNum,fIntervalTime,bRepeat))
		{
			return pNode;
		}
	}

	return NULL;
}


bool SpriteBlackCloud::init( const std::string arrayPic[],int nNum,float fIntervalTime ,bool bRepeat/*=true*/ )
{
	if (!CAnimationSprite::init(arrayPic,nNum,fIntervalTime,bRepeat))
	{
		return false;
	}
	setTransparent(false);
	//setSpeed(b2Vec2(1.5,0));
	setCollisionRemove(false);
	return true;
}